package com.qf.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.jdbc.datasource.DataSourceTransactionManager;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import javax.sql.DataSource;

/**
 * spring容器的配置文件，用来替代原本的spring.xml配置
 */

@ComponentScan("com.qf.service,com.qf.config,com.qf.aop")
@EnableAspectJAutoProxy
@EnableTransactionManagement //这个注解会自动到容器中找一个名字叫transactionManagement的平台事务管理器对象
public class SpringConfig {

}
